package cn.aitrox.ry.service.image;

import cn.aitrox.ry.common.service.api.config.UserInterceptorFeignConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(
        exclude = {DataSourceAutoConfiguration.class, RedisAutoConfiguration.class, MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@ComponentScan({"cn.aitrox.ry"})
@EnableTransactionManagement
@EnableFeignClients(basePackages = "cn.aitrox.ry.service", defaultConfiguration = UserInterceptorFeignConfig.class)
public class ImageBootstrap {

    public static void main(String[] args) {
        SpringApplication.run(ImageBootstrap.class, args);
    }

}
